From: Carlos Soriano Date: Fri, 6 Sep 2013 07:30:51 +0000 (+0200) Subject: appDisplay: Also scroll on focused indicators X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3497 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=85d2b9e32aa1d4539ba1077f88e1231dfe6de6d1;p=gnome-shell.git appDisplay: Also scroll on focused indicators Since now if you focus the indicators, you can't scroll and change pages in the app picker. That was reported as odd from some users/developers. So allow to scroll when the focus is in the indicators. https://bugzilla.gnome.org/show_bug.cgi?id=707609 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 7263ef093..dbcb8d9b6 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -175,7 +175,8 @@ const PageIndicators = new Lang.Class({ vertical: true, x_expand: true, y_expand: true, x_align: Clutter.ActorAlign.END, - y_align: Clutter.ActorAlign.CENTER }); + y_align: Clutter.ActorAlign.CENTER, + reactive: true }); this._nPages = 0; this._currentPage = undefined; @@ -281,6 +282,7 @@ const AllView = new Lang.Class({ function(indicators, pageIndex) { this.goToPage(pageIndex); })); + this._pageIndicators.actor.connect('scroll-event', Lang.bind(this, this._onScroll)); this.actor.add_actor(this._pageIndicators.actor); this._folderIcons = [];